package ym.ecrm.web.action.systemManagement;

import org.springframework.beans.factory.annotation.Autowired;

import ym.ecrm.core.dto.systemManagement.OrganizationDTO;
import ym.ecrm.core.service.systemManagement.ISystemService;
import ym.ecrm.web.action.base.BaseAction;

public class GetOrganizationByIdAction extends BaseAction{

	private long id;
	private OrganizationDTO data;
	
	@Autowired
	private ISystemService systemService;

	public String execute() {
		data = systemService.
				loadOrganization(id);
		return proccess();
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public String getSuccess() {
		return success;
	}

	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}

	public OrganizationDTO getData() {
		return data;
	}

	public void setData(OrganizationDTO data) {
		this.data = data;
	}
	
}
